<FORM method="post" action="/own/staff/">
<table border="1" cellpadding="5" cellspacing="1" align="center" width="50%">
	<tr>
		<td colspan="2">{if $AgencyStaff->isNew()}Добавление нового сотрудника агенства{else}Редактирование сотрудника агенства ('{$AgencyStaff->getFullName()}'){/if}</td>
	</tr>
    <tr>
    	<td>Фамилия:</td> 
    	<td><input type="text" id="lastname" name="m_u[lastname]" value="{$AgencyStaff->lastname}"/> </td>
    </tr>
    <tr>
    	<td>Имя:</td> 
    	<td><input type="text" id="firstname" name="m_u[firstname]" value="{$AgencyStaff->firstname}"/> </td>
    </tr>
    <tr>
    	<td>Отчество:</td> 
    	<td><input type="text" id="secondname" name="m_u[secondname]" value="{$AgencyStaff->secondname}"/> </td>
    </tr>
    <tr>
    	<td>Должность:</td> 
    	<td><input type="text" id="post" name="m_u[post]" value="{$AgencyStaff->post}"/> </td>
    </tr>
    <tr>
    	<td>Образование:</td> 
    	<td><textarea id="education" name="m_u[education]">{$AgencyStaff->education}</textarea></td>
    </tr>
    <tr>
    	<td>Стаж работы в туризме:</td> 
    	<td><input type="text" id="tourism_seniority" name="m_u[tourism_seniority]" value="{$AgencyStaff->tourism_seniority}"/> </td>
    </tr>
    <tr>
    	<td>Стаж работы в сфере продаж:</td> 
    	<td><input type="text" id="sales_seniority" name="m_u[sales_seniority]" value="{$AgencyStaff->sales_seniority}"/> </td>
    </tr>
    <tr>
    	<td>Спефикация по странам:</td> 
    	<td>{html_checkboxes name=m_u[countries] id=countries options=$TestModuleManager->htmlSelect('name', '', 'module_type=0', 'name asc') selected=$AgencyStaff->countries separator='<br>' labels=true}</td>
    </tr>
    <tr>
    	<td>Дата рождения:</td>
    	<td>{html_select_date day_extra='style="width:45px"' year_extra='style="width:65px"' month_extra='style="width:100px"' field_order='DMY' start_year='-100' field_array='birth' day_value_format='%02d' time=$AgencyStaff->birth_date}</td>
    </tr>
    <tr>
    	<td>Адрес:</td> 
    	<td><textarea id="address" name="m_u[address]">{$AgencyStaff->address}</textarea></td>
    </tr>
    <tr>
    	<td>Мобильный телефон:</td> 
    	<td><input type="text" id="phone_mobile" name="m_u[phone_mobile]" value="{$AgencyStaff->phone_mobile}"/> </td>
    </tr>
    <tr>
    	<td>E-mail:</td> 
    	<td><input type="text" id="email" name="m_u[email]" value="{$AgencyStaff->email}"/> </td>
    </tr>
    <!--{if !$AgencyStaff->isNew()}
    <tr>
    	<td colspan="2"><p style="color: #922;">Логин присваивается один раз в момент его первого ввода.</p></td>
    </tr>
    <tr>
    	<td>Логин</td> 
    	<td><input type="text" id="login" name="m[login]" value="{$PersonalData.0.login}" {if !$AgencyStaff->isNew()}readonly="readonly"{/if}/> </td>
    </tr>
    <tr>
    	<td colspan="2">{if !$AgencyStaff->isNew()}<p style="color: #922;">Оставте пароль пустым, если не хотите его изменять</p>{/if}</td>
    </tr>
    <tr>
    	<td>Пароль</td> 
    	<td><input type="password" id="password" name="m[password]" /> </td>
    </tr>
    <tr>
    	<td>Повторите пароль</td> 
    	<td><input type="password" id="password1" name="m[password1]" /> </td>
    </tr>
    {/if}-->
    <tr>
    	<td colspan="2" align="right"><input type="submit" name="save" value="Сохранить" class="button"></td>
    </tr>
</table>
    <input type="hidden" name="id" id="id" value="{$AgencyStaff->getPk()}" />
</FORM>